package com.springboot.jeesite.modules.sys.web;

import com.springboot.jeesite.common.web.BaseController;
import com.springboot.jeesite.modules.sys.entity.OsInfo;
import com.springboot.jeesite.modules.sys.service.OsInfoService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 服务器监控
 */
@Controller
@RequestMapping("${adminPath}/monitor/server")
public class OsInfoController extends BaseController {
    //@RequiresPermissions("monitor:osserver:view")
    @RequestMapping(value = {""})
    public String server(Model model) throws Exception {
        OsInfoService osInfoService = new OsInfoService();
        OsInfo osInfo = osInfoService.copyTo();
        model.addAttribute("osinfo", osInfo);
        return "modules/sys/osinfo";
    }
}

